﻿
<UserControl x:Class="ShellApplication.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ctrl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:CoreRegion="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation">


    <Grid x:Name="LayoutRoot" Background="Aquamarine">

        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Border Grid.RowSpan="3" BorderBrush="Chocolate"  BorderThickness="2" CornerRadius="3"/>

        <Border Grid.Row="0" BorderBrush="YellowGreen" BorderThickness="5" CornerRadius="5">
            <ContentControl CoreRegion:RegionManager.RegionName="HeaderRegion"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Stretch"
                            HorizontalContentAlignment="Stretch"
                            VerticalContentAlignment="Stretch"/>
        </Border>
        <Border Grid.Row="1" BorderBrush="GreenYellow" BorderThickness="5" CornerRadius="5">
            <ContentControl CoreRegion:RegionManager.RegionName="ContentRegion"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Stretch"
                            HorizontalContentAlignment="Stretch"
                            VerticalContentAlignment="Stretch"/>
        </Border>
        <Border Grid.Row="2" BorderBrush="BurlyWood" BorderThickness="5" CornerRadius="5">
            <ContentControl CoreRegion:RegionManager.RegionName="FooterRegion"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Stretch"
                            HorizontalContentAlignment="Stretch"
                            VerticalContentAlignment="Stretch"/>
        </Border>
        <!--<ctrl:GridSplitter Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"                           
                           Background="Red" Height="2"/>
        <ctrl:GridSplitter Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Center"                           
                           Background="Green" Height="2"/>-->

    </Grid>

</UserControl>
